<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8" />
		<title></title>
		<style type="text/css">
			label:hover + input{
				border-color: red;
			}
			label > input:hover{
				border-color: blue;
			}
		</style>
	</head>
	<body>
		<label>用户名：</label><input />
		<label>密码：<input type="password"/> </label>
	</body>
</html>
